home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / CHIP Kasım 1998.iso / DRIVERS / CD-Rom / 220x.exe / CF1.BAT < prev    next >
DOS Batch File  |  1993-01-12  |  2KB  |  129 lines

  1. ECHO OFF
  2. cls
  3. prompt $p$g
  4. if "%1" == "?" goto usage
  5. if "%1" == "at" goto inst
  6. if "%1" == "AT" goto inst
  7. if "%1" == "xt" goto inst
  8. if "%1" == "XT" goto inst
  9.  
  10. if "%1" == "2at" goto inst
  11. if "%1" == "2AT" goto inst
  12. if "%1" == "2xt" goto inst
  13. if "%1" == "2XT" goto inst
  14.  
  15. if "%1" == "3at" goto inst
  16. if "%1" == "3AT" goto inst
  17. if "%1" == "3xt" goto inst
  18. if "%1" == "3XT" goto inst
  19.  
  20. if "%1" == "4at" goto inst
  21. if "%1" == "4AT" goto inst
  22. if "%1" == "4xt" goto inst
  23. if "%1" == "4XT" goto inst
  24.  
  25. sel_seq
  26.  
  27. :inst
  28.  
  29. ECHO OFF
  30. IF EXIST AUTOEXEC.BAT    DEL AUTOEXEC.BAT
  31. IF EXIST CONFIG.SYS    DEL CONFIG.SYS
  32. IF EXIST *.NEW        DEL *.NEW
  33.  
  34. CLS
  35. ECHO\
  36. ECHO NOTICE: If the DOS version is 5.0, MS-DOS Extensions is ignored
  37. ECHO         as Incorrect DOS version.
  38. ECHO\
  39.  
  40. ECHO AUTOEXEC.BAT and CONFIG.SYS files will be modified.  Wait for a while.
  41.  
  42. ECHO\
  43.  
  44. ECHO ON
  45. COPY C:\AUTOEXEC.BAT
  46. COPY C:\CONFIG.SYS
  47.  
  48. ECHO\
  49. ECHO OFF
  50.  
  51. shell3 del_MSCD
  52. shell3 del_DVR
  53.  
  54. ECHO\
  55. ECHO ON
  56. COPY CONFIG.NEW+CONFIG.%1 CONFIG.NEW
  57. ECHO OFF
  58.  
  59. ECHO\
  60.  
  61. shell3 app A:\%2
  62. shell3 m_sys A:\%2
  63.  
  64. :take_ca
  65. ECHO\
  66. ECHO\
  67. ECHO Some files will be copied from Library disk to the target disk.
  68. ECHO Continue in response to each prompt, then you can install
  69. ECHO Sony MS-DOS CD-ROM Extentions on the target disk.
  70.  
  71. ECHO\
  72. ECHO NOTE: Even if your computer has only one floppy disk drive,
  73. ECHO       the following message will be displayed at each prompt.
  74.  
  75. ECHO\
  76. ECHO       Insert diskette for drive A: (or B:) and strike
  77. ECHO       any key when ready
  78.  
  79. ECHO\
  80. ECHO       Make a note of the following:
  81.  
  82. ECHO\
  83. ECHO       If drive letter A: appears, insert Library disk.
  84.  
  85. ECHO\
  86. ECHO       If drive letter B: appears, insert a target disk.
  87.  
  88. ECHO\
  89. PAUSE
  90.  
  91. if "%2" == "" goto make_ca
  92. ECHO ON
  93. MD B:\%2
  94. ECHO OFF
  95.  
  96. :make_ca
  97. ECHO ON
  98. COPY AUTOEXEC.BAT+AUTOEXEC.ADD B:\AUTOEXEC.BAT
  99. COPY CONFIG.SYS B:\CONFIG.SYS
  100. COPY SONY_CDU.SYS B:\%2
  101. COPY MSCDEX.EXE B:\%2
  102.  
  103. ECHO OFF
  104. IF EXIST AUTOEXEC.BAT    DEL AUTOEXEC.BAT
  105. IF EXIST CONFIG.SYS    DEL CONFIG.SYS
  106. IF EXIST *.NEW        DEL *.NEW
  107.  
  108. LAST_MSG A %2
  109. goto exit
  110.  
  111. :usage
  112. echo\
  113. echo\
  114. echo     USAGE...
  115. echo\
  116. echo     CF1 XX [Option] and Enter
  117. echo\
  118. echo         XX: Your computer type, AT or XT
  119. echo             Option: Sub Directory
  120. echo\
  121. echo\
  122. echo     CF1 ? and Enter         ; Display this message.
  123.  
  124. echo\
  125. echo\
  126. :exit
  127.  
  128.  
  129.